package com.elvin.platform.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.elvin.platform.beans.Device;

import java.util.List;
import java.util.Map;

public interface DeviceMapper extends BaseMapper<Device> {
    public void updateReportDate(Device entity);
    public void updateReportByImei(Device entity);
    public List<Device> getDevicesByOrganizeId(Map<String,Object> map);
    public int selectPageCount(Device entity);
    public List<Device> selectForPage(Device entity);
    public List<Device> selectByDevId(Map<String,Object> map);
    //获取在线离线设备个数
    public Integer getOnlineNumber(Device entity);
    //获取设备类型个数
    public List<Map<String,Object>> getDevTypeNumber(Device entity);
    //获取通讯方式个数
    public List<Map<String,Object>> getDevCommunicationModeNumber(Device entity);

    public List<Device> selectDeviceList(Device entity);

    //根据场景id获取场景及下级场景下的设备信息
    public int selectDevicesBydevScenariosIdCount(Device entity);
    public List<Device> selectDevicesBydevScenariosId(Device entity);
    public List<Device> selectByDevType(Device entity);
    public void updateToken(Device entity);

}
